package com.order.config;

import com.order.feign.fallback.GoodsServiceFallbackFactory;
import feign.Logger;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

/**
 * @className: DefaultFeignConfiguration
 * @Description: feign默认配置类
 * @author: JiaZhenpeng
 * @data: 2022/11/1911:42
 */
@Component
public class DefaultFeignConfiguration {

    @Bean
    public Logger.Level logLevel(){
        return Logger.Level.BASIC;
    }

    @Bean
    public GoodsServiceFallbackFactory goodsServiceFallbackFactory(){
        return new GoodsServiceFallbackFactory();
    }
}
